﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Music_Tag_Organizer
{
    public class Artist : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

       
        private String m_Name;

        public String Name
        {
            get { return m_Name; }
            set
            {
                m_Name = value;
                OnPropertyChanged("Name");
            }
        }

        public Artist(String name)
        {
            Name = name;
        }

        protected void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }


    } // end class
} // end namespace 
